package com.ruoyi.project.tickets.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 发布票券对象 t_push
 *
 * @author ruoyi
 * @date 2023-06-29
 */
public class Push extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 发布人姓名 */
    @Excel(name = "发布人姓名")
    private String pubUserName;

    /** 发布人id */
    @Excel(name = "发布人id")
    private Long pubUserId;

    /** 发布数量 */
    @Excel(name = "发布数量")
    private Long pubNum;

    private String ticketType;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private Double salePrice;

    /** 票券规则 */
    @Excel(name = "票券规则")
    private Long ruleId;

    /** 主键 */
    private Long id;

    public void setPubUserName(String pubUserName)
    {
        this.pubUserName = pubUserName;
    }

    public String getPubUserName()
    {
        return pubUserName;
    }
    public void setPubUserId(Long pubUserId)
    {
        this.pubUserId = pubUserId;
    }

    public Long getPubUserId()
    {
        return pubUserId;
    }
    public void setPubNum(Long pubNum)
    {
        this.pubNum = pubNum;
    }

    public Long getPubNum()
    {
        return pubNum;
    }
    public void setSalePrice(Double salePrice)
    {
        this.salePrice = salePrice;
    }

    public Double getSalePrice()
    {
        return salePrice;
    }
    public void setRuleId(Long ruleId)
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId()
    {
        return ruleId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("pubUserName", getPubUserName())
            .append("pubUserId", getPubUserId())
            .append("pubNum", getPubNum())
            .append("salePrice", getSalePrice())
            .append("ruleId", getRuleId())
            .append("id", getId())
            .toString();
    }

    public String getTicketType() {
        return ticketType;
    }

    public void setTicketType(String ticketType) {
        this.ticketType = ticketType;
    }
}
